package com.petrochina.cloudconfig.controller;


import com.petrochina.cloudconfig.biz.FuncBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/func")
public class FuncController {

    @Autowired
    private FuncBiz funcBiz;

    @RequestMapping("/pack")
    public void pack(@RequestParam("pkgFullName") String pkgFullName,@RequestParam("envName") String envName){
        funcBiz.pack(pkgFullName,envName);
    }


    @RequestMapping("/deploy")
    public void deploy(@RequestParam("pkgFullName") String pkgFullName,@RequestParam("envName") String envName){

        //funcBiz.deploy("filePath",null);
    }




}
